% Read Simulation data and save them to .mat files
FOLDER = 'D:\Projects\200802 LPCVD\Data\Controller_Zhang2009_xxx\OpenLoop\';
for W = 0.1:0.05:0.5
    fprintf(1,'W = %f',W);
    FILE = strcat(FOLDER,'W0',num2str(100*W),'\lattice_1DTRI_detail.dat');
    
    [t,R2] = ReadOneVar('kmc',FILE,'r2');
    save(strcat('KMC_R2_W0',num2str(100*W)));
end

modelmodel_id